module.exports=function(sequelize,DataTypes){
	var UserEntry=sequelize.define("ttrss_user_entries",{
	  int_id: {
	    type: DataTypes.INTEGER,
	    primaryKey:true
	  },
	  ref_id: {
	    type: DataTypes.INTEGER
	  },
	  feed_id: {
	    type: DataTypes.STRING
	  }
	},{timestamps: false})


	UserEntry.associate=function(models){
		UserEntry.hasOne(models.Entry,{foreignKey:"id",targetKey:"ref_id"})
	}

	return UserEntry;
}
